import { DataComparisonRespModel } from "@/api/mall/statistics/common";
import dayjs from "dayjs";

// 会员分析
export interface MemberAnalyseReqModel {
  Times: dayjs.ConfigType[]
}

// 会员分析
export interface MemberAnalyseRespModel {
  VisitUserCount: number
  OrderUserCount: number
  PayUserCount: number
  Atv: number
  Comparison: DataComparisonRespModel<MemberAnalyseComparisonRespModel>
}

// 会员分析对照数据
export interface MemberAnalyseComparisonRespModel {
  RegisterUserCount: number
  VisitUserCount: number
  RechargeUserCount: number
}

// 会员地区统计
export interface MemberAreaStatisticsRespModel {
  AreaId: number
  AreaName: string
  UserCount: number
  OrderCreateUserCount: number
  OrderPayUserCount: number
  OrderPayPrice: number
}

// 会员性别统计
export interface MemberSexStatisticsRespModel {
  Sex: number
  UserCount: number
}

// 会员统计
export interface MemberSummaryRespModel {
  UserCount: number
  RechargeUserCount: number
  RechargePrice: number
  ExpensePrice: number
}

// 会员终端统计
export interface MemberTerminalStatisticsRespModel {
  Terminal: number
  UserCount: number
}

// 会员数量统计
export interface MemberCountRespModel {
  /** 用户访问量 */
  VisitUserCount: string
  /** 注册用户数量 */
  RegisterUserCount: number
}

export interface MemberRegisterCountRespModel {
  Date: string
  Count: number
}